﻿@{
    Layout = null;
}
<link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.4/src/SearchInfoWindow_min.css" />
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.4"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.4/src/SearchInfoWindow_min.js"></script>
    <div id="map" style="height:100%;-webkit-transition: all 0.5s ease-in-out;transition: all 0.5s ease-in-out;"></div>
@*<div id="mapWindow">
    <div style="height: 100%;">
        <iframe id="mapDetailFrame" src="@Url.Content("~/baidumap.html")" style="height: 100%;width:100%;border:none;"></iframe>
    </div>
</div>*@
<script type="text/javascript">
    function BaiduMapImageInit() {
        var map = new BMap.Map('map');
        var poi = new BMap.Point(113.585719, 22.278949);
        map.centerAndZoom(poi, 16);
        var marker = new BMap.Marker(poi);
        map.addOverlay(marker);
        marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
        marker.addEventListener("click", function () {
            //openMapWindow();
        });
    }

    BaiduMapImageInit();
</script>